<div class="content">
    <textarea id="pre">
      
        var a={"name":"tom","sex":"男","age":"24"};   
        var b='{"name":"Mike","sex":"女","age":"29"}';   
        var aToStr=JSON.stringify(a);   
        var bToObj=JSON.parse(b);
    </textarea>
     
</div>